package org.jeecg.modules.youlgl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.youlgl.entity.HqYlgl;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 油料管理
 * @Author: jeecg-boot
 * @Date:   2020-06-16
 * @Version: V1.0
 */
public interface IHqYlglService extends IService<HqYlgl> {

    void startFlow(HqYlgl hqYlgl, LoginUser loginUser);

    void applyAgain(HqYlgl hqYlgl, LoginUser user);

    void complateTask(LoginUser loginUser, String taskId, Integer auditStatus, String memo);

    IPage<HqYlgl> taskList(String id, Integer pageNo, Integer pageSize);

    IPage<HqYlgl> myApplyList(Page<HqYlgl> page, LoginUser user, HqYlgl hqYlgl);

    IPage<HqYlgl> myTodoTasks(Page<HqYlgl> page, LoginUser user, HqYlgl hqYlgl);

    IPage<HqYlgl> myDoneTasks(Page<HqYlgl> page, LoginUser user, HqYlgl hqYlgl);

    List<HqYlgl>  myApplyList2(LoginUser user, @Param("chepnu") String chepnu);
}
